import request from '../utils/request';

export const teacherAPI = {
  // 获取教师课程列表
  getCourses: (teacherId) => {
    return request.get(`/api/teacher/courses?teacherId=${teacherId}`);
  },

  // 获取预约列表
  getBookings: (params) => {
    return request.get('/api/teacher/bookings', { params });
  },

  // 更新预约状态
  updateBookingStatus: (id, data) => 
    request.put(`/api/teacher/bookings/${id}/status`, data),

  // 获取课程评价
  getCourseComments: (courseId) => 
    request.get(`/api/teacher/courses/${courseId}/comments`),

  // 获取统计数据
  getStatistics: (teacherId) => 
    request.get(`/api/teacher/statistics?teacherId=${teacherId}`),
}; 